package com.xxtx.trade.common.exception;

import com.xxtx.trade.common.util.model.ResultMsg;

/**
 * 功能描述:
 *
 * @Params: 业务异常类
 * @Author: xuliang
 * @email: northly@live.com
 * @Date: 2020/1/14 10:48
 */
public class GlobalException extends RuntimeException {
    private int code;
    private String msg;
    public GlobalException(ResultMsg resultMsg) {
        super(resultMsg.getMessage());
        this.msg = resultMsg.getMessage();
        this.code = resultMsg.getCode();
    }
}
